<template>
  <div>
    <van-nav-bar title="一对一辅导" @click-left="$router.go(-1)" left-arrow>
      <template #right>
        <van-icon name="search" size="18" />
      </template>
    </van-nav-bar>
    <van-dropdown-menu>
      <van-dropdown-item
        title="选择上课时间"
        v-model="value1"
        @click="show = true"
      >
        <van-cell>
          <template>
            <!--<van-calendar v-model="show" @confirm="onConfirm" />-->
            <van-calendar
              v-model="show"
              :poppable="false"
              :show-confirm="false"
              :style="{ height: '300px' }"
              row-height="40"
            />
          </template>
        </van-cell>
      </van-dropdown-item>
      <van-dropdown-item
        title="选择老师条件"
        v-model="value2"
        :options="option2"
      />
    </van-dropdown-menu>
    <ul class="box">
      <li>
        <img src="" alt="" />
        <div>女 年教龄</div>
        <button>预约</button>
      </li>
      <li>
        <img src="" alt="" />
        <div>女 年教龄</div>
        <button>预约</button>
      </li>
      <li>
        <img src="" alt="" />
        <div>女 年教龄</div>
        <button>预约</button>
      </li>
      <li>
        <img src="" alt="" />
        <div>女 年教龄</div>
        <button>预约</button>
      </li>
      <div class="fot">没有更多了</div>
    </ul>
  </div>
</template>

<script>
import { NavBar, Icon, Calendar, DropdownMenu, DropdownItem, Cell } from "vant";
export default {
  data() {
    return {
      show: false,
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {
    [NavBar.name]: NavBar,
    [Icon.name]: Icon,
    [Calendar.name]: Calendar,
    [DropdownMenu.name]: DropdownMenu,
    [DropdownItem.name]: DropdownItem,
    [Cell.name]: Cell,
  },
  computed: {},
  watch: {},
};
</script>

<style lang='scss' scoped>
.box {
  box-sizing: border-box;
  padding: 0 10px;
  li {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    vertical-align: center;
    margin-top: 10px;
    box-sizing: border-box;
    padding: 0 10px;
    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: 1px solid #ccc;
    }
    button{
        width: 60px;
        height: 30px;
        border-radius: 30px;
        color: #eb6100;
        background-color: #ebeefe;
        border: none;
    }
  }
  .fot{
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }
}
</style>
